#ifndef TABITEM_H
#define TABITEM_H

#include <QIcon>
#include <QObject>
#include <QWebPage>
#include "bookmarkitem.h"

class TabItem : public QObject
{
	Q_OBJECT
public:
	TabItem(QString url = "", QString title = "", QIcon icon = QIcon(), int tabId = 0, QObject *parent = 0);
	inline void change(BookmarkItem *bookmark) { m_url = bookmark->url(); m_title = bookmark->title(); m_icon = bookmark->icon(); }
	inline void setTabId(int newTabId) { m_tabId = newTabId; }
	inline QString url(void) { return m_url; }
	inline QString title(void) { return m_title; }
	inline QIcon icon(void) { return m_icon; }
	inline int tabId(void) { return m_tabId; }
	inline QWebPage *page(void) { return m_page; }
private:
	QString m_url;
	QString m_title;
	QIcon m_icon;
	int m_tabId;
	QWebPage *m_page;
};

#endif // TABITEM_H
